package zh.codegym.task.task05.task0520;

/*
我们来组合一个矩形
*/

public class Rectangle {
    private int top;
    private int left;
    private int width;
    private int height;

    //在此编写你的代码
    public  Rectangle(int top, int left,int width,int height){
        this.top = top;
        this.left = left;
        this.width = width;
        this.height = height;
    }

    public  Rectangle(int top, int left){
        this.top = top;
        this.left = left;
    }

    public  Rectangle(int height){
        this.width = height;
        this.height = height;
    }

    public  Rectangle(int height,int top,int left){
        this.top = top;
        this.left = left;
        this.height = height;
    }

    public void copy(Rectangle rectangle){
        rectangle = this;
    }

    public static void main(String[] args) {

    }
}
